package com.bfl.sa.showcase.sample.web.controller;

import com.bfl.sa.common.entity.enums.BooleanEnum;
import com.bfl.sa.common.web.controller.BaseCRUDController;
import com.bfl.sa.showcase.sample.entity.Sample;
import com.bfl.sa.showcase.sample.entity.Sex;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
@RequestMapping(value = "/showcase/sample")
public class SampleController extends BaseCRUDController<Sample, Long> {

    @Override
    protected void setCommonData(Model model) {
        super.setCommonData(model);
        model.addAttribute("sexList", Sex.values());
        model.addAttribute("booleanList", BooleanEnum.values());
    }

}
